﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using BSU.GraduateWork.Data.Model;
using BSU.GraduateWork.Data.Repositories.Interfaces;

namespace BSU.GraduateWork.Data.Repositories
{
    public class PointRepository : BaseRepository<Point, int>, IPointRepository
    {
        #region IProblemRepository Members

        

        #endregion


        //public override Problem Save(Problem entity)
        //{
        //    var dlo = new DataLoadOptions();
        //    dlo.LoadWith<Solution>(s => s.Points);

        //    var context = GetNewContext(dlo, false);
        //    //context.GetTable<Solution>().Attach(entity.Solution);
        //    //context.GetTable<InputParameters>().Attach(entity.InputParameters);
            
        //    //context.GetTable<Point>().AttachAll(entity.Solution.Points);
        //    return base.Save(entity, context);
        //}
    }
}